package com.springboot.service.impl;

import com.springboot.mapper.PatientInfoFormMapper;
import com.springboot.model.PatientInfoForm;
import com.springboot.service.UploadSicknessInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UploadSicknessInfoServiceImpl implements UploadSicknessInfoService {
    @Autowired
    PatientInfoFormMapper patientInfoFormMapper;

    @Override
    public int insertPatientInfoForm(PatientInfoForm patientInfoForm) {
       try {
           System.out.println(patientInfoForm.getSickSketch());
           System.out.println(patientInfoForm.toTestString());
           patientInfoFormMapper.insertSelective(patientInfoForm);
       }
       catch (Exception e)
       {
           System.out.println("插入病情信息失败");
       }
       return 1;
    }
}
